package com.flycms.module.soft.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.flycms.module.soft.model.ApplyTool;
import com.flycms.module.soft.model.SoftApply;

/**
 *
 * <br/>Copyright 2020
 * <br/>All rights reserved
 * @author 沁言訫語
 * @version 2020年7月6日
 * @Date 2020年7月6日
 */

public interface SoftApplyDao {
    
    int addSoftApply(SoftApply softApply);
    
    List<SoftApply> getSoftApplyList(@Param("record") SoftApply softApply,
            @Param("pageIndex") Integer pageIndex,
            @Param("pageSize") Integer pageSize);
    
    int getSoftApplyCount(SoftApply softApply);
    
    SoftApply querySoftApplyById(@Param("id") Long id);
    
    int updateSoftApply(SoftApply softApply);
    
    int removeSoftApply(@Param("id") Long id);
    
    
    int addApplyTool(ApplyTool applyTool);
    
    List<ApplyTool> getApplyToolList(@Param("toolName") String toolName,
            @Param("pageIndex") Integer pageIndex,
            @Param("pageSize") Integer pageSize);
    
    int getApplyToolCount(@Param("toolName") String toolName);
    
    ApplyTool queryApplyToolById(@Param("id") Long id);
    
    ApplyTool queryApplyToolByName(@Param("toolName") String toolName);
    
    int updateApplyTool(ApplyTool applyTool);
    
    int removeApplyTool(@Param("id") Long id);

}
